home *** CD-ROM | disk | FTP | other *** search
/ Champak 114 / Vol 114.iso / games / y2k_tetr.swf / scripts / DefineSprite_204 / frame_9 / DoAction.as
Encoding:
Text File  |  2010-08-12  |  1.4 KB  |  84 lines

  1. teky = getProperty("figure", _Y);
  2. if(pause == "1")
  3. {
  4.    busy = "1";
  5.    stop();
  6. }
  7. if(drop == "1")
  8. {
  9.    ny = teky / "10";
  10.    if(ny == int(ny))
  11.    {
  12.       if(nfig == "3")
  13.       {
  14.          ny = int(ny) * "10";
  15.       }
  16.       else
  17.       {
  18.          ny = int(ny) * "10" - "5";
  19.       }
  20.    }
  21.    else if(nfig == "3")
  22.    {
  23.       ny = (int(ny) + "1") * "10";
  24.    }
  25.    else
  26.    {
  27.       ny = (int(ny) + "1") * "10" - "5";
  28.    }
  29.    teky = ny;
  30.    nposy = teky;
  31.    setProperty("figure", _Y, nposy);
  32.    busy = "1";
  33.    call("test:test4");
  34.    if(eval("test:result2") eq "nook")
  35.    {
  36.       if(eff == "1")
  37.       {
  38.          tellTarget("effects")
  39.          {
  40.             gotoAndStop("dis");
  41.             play();
  42.          }
  43.       }
  44.       busy = "1";
  45.       setProperty("figure", _Y, nposy - kf);
  46.       gotoAndPlay(11);
  47.    }
  48.    else
  49.    {
  50.       setProperty("figurev", _Y, nposy);
  51.       busy = "0";
  52.    }
  53.    kf = "10";
  54.    drop = "0";
  55.    gotoAndPlay(10);
  56. }
  57. tt = teky;
  58. nposy = teky + kf;
  59. setProperty("figure", _Y, nposy);
  60. busy = "1";
  61. call("test:test4");
  62. if(eval("test:result2") eq "nook")
  63. {
  64.    if(eff == "1")
  65.    {
  66.       tellTarget("effects")
  67.       {
  68.          gotoAndStop("dis");
  69.          play();
  70.       }
  71.    }
  72.    busy = "1";
  73.    setProperty("figure", _Y, nposy - kf);
  74.    gotoAndPlay(11);
  75. }
  76. else
  77. {
  78.    setProperty("figurev", _Y, nposy);
  79.    if(pause == "0")
  80.    {
  81.       busy = "0";
  82.    }
  83. }
  84.